#include <iostream>
#include <string.h>
using namespace std;
class Computer{
public:
    void setBrand(const char *brand){
        strcpy(_brand,brand);
    }
    void setPrice(float price){
        _price=price;
    }
    void print(){
        cout<<_brand<<endl;
        cout<<_price<<endl;
    }
private:
    char _brand[20];
    float _price;
};

void test0(){
    int a;
    Computer pc;
    pc.setBrand("xiaomi");
    pc.setPrice(5000);
    pc.print();
}
int main(int argc, char * argv[]){
    test0();
    return 0;
}

